﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Castle.ActiveRecord;

namespace sPodnosom.Models
{
    [ActiveRecord]
    public class DiningHall : ActiveRecordBase<DiningHall>
    {
        [PrimaryKey]
        public int ID
        {
            get;
            set;
        }
        [Property]
        public string Description
        {
            get;
            set;
        }
        [Property]
        public string Name
        {
            get;
            set;
        }

        [Property]
        public double Latitude
        {
            get;
            set;
        }

        [Property]
        public double Longitude
        {
            get;
            set;
        }

        new public static List<DiningHall> FindAll()
        {
            return ((DiningHall[])FindAll(typeof(DiningHall))).ToList<DiningHall>();
        }
    }
}
